package cn.jxufe.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import cn.jxufe.bean.EntityID;

@Entity
@Table(name="T_Farm")
public class Farm extends EntityID{
	private static final long serialVersionUID = 6710754697122731159L;
	private int userId;
	private int seedId;
	private int landId;
	private int curStage = 0;
	private int curStageThroughTime = 0;
	private int harvest = 0;
	private int isInsect = 0;
	private int residueSeason = 0;
	
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getSeedId() {
		return seedId;
	}
	public void setSeedId(int seedId) {
		this.seedId = seedId;
	}
	public int getLandId() {
		return landId;
	}
	public void setLandId(int landId) {
		this.landId = landId;
	}
	public int getCurStage() {
		return curStage;
	}
	public void setCurStage(int curStage) {
		this.curStage = curStage;
	}
	public int getCurStageThroughTime() {
		return curStageThroughTime;
	}
	public void setCurStageThroughTime(int curStageThroughTime) {
		this.curStageThroughTime = curStageThroughTime;
	}
	public int getHarvest() {
		return harvest;
	}
	public void setHarvest(int harvest) {
		this.harvest = harvest;
	}
	public int getIsInsect() {
		return isInsect;
	}
	public void setIsInsect(int isInsect) {
		this.isInsect = isInsect;
	}
	public int getResidueSeason() {
		return residueSeason;
	}
	public void setResidueSeason(int residueSeason) {
		this.residueSeason = residueSeason;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	public String toTextMessage() {
		return "{" + 
				"userId:" + this.userId +
				",seedId:" + this.seedId +
				",landId:" + this.landId +
				",curStage:" + this.curStage +
				",curStageThroughTime:" + this.curStageThroughTime +
				",harvest:" + this.harvest +
				",isInsect:" + this.isInsect +
				",residueSeason:" + this.residueSeason +
				"}";
	}
}
